package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.AssignDto;
import com.ysd.lis.request.IssueApplyParam;
import com.ysd.lis.service.WkIssueAssignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author peng
 * @since 2024-04-15
 */
@Api(tags = "问题分派")
@RestController
@RequestMapping("/api/wk/wkIssueAssign")
public class WkIssueAssignController extends BaseController {

    @Autowired
    WkIssueAssignService wkIssueAssignService;
    @ApiOperation("查询")
    @GetMapping("/findIssueAssignList")
    public Result findIssueAssignList(IssueApplyParam param){
        return wkIssueAssignService.findIssueAssignList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/submitAssign")
    public Result submitAssign(@RequestBody AssignDto dto) {
        return wkIssueAssignService.submitAssign(dto);
    }
}
